package org.dromara.system.domain.bo;

import org.dromara.system.domain.SysBook;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 图书业务对象 sys_book
 *
 * @author guoao
 * @date 2024-04-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysBook.class, reverseConvertGenerate = false)
public class SysBookBo extends BaseEntity {

    /**
     * 图书存储主键
     */
    @NotNull(message = "图书存储主键不能为空", groups = { EditGroup.class })
    private Long bookId;

    /**
     * 图书名
     */
    @NotBlank(message = "图书名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bookName;

    private String url;


    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auth;

    private String introduction;


}
